package com.gopay.common.domain.pg;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.util.Date;

/**
 * 网关 通用交易 订单状态流水表
 * Created by xuHui on 2017/10/12.
 */
@Entity
@Table(name="PG_GEN_ORDER_STATUS_DTL")
public class PgGenOrderStatusDtl extends BaseEntity {
    /** 网关流水 */
    @Id
    @Column(name="ID")
    private Integer id;
    /** 状态 */
    @Column(name="STATUS")
    private String status;
    /** 错误码 */
    @Column(name="ERR_CODE")
    private String errCode;
    /** 创建时间 */
    @Column(name="CREATED_TS")
    private Date createdTs;
    /** 最后修改时间 */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;
    /** 版本 */
    @Version
    @Column(name="VERSION")
    private Integer version;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
